<?php require_once('inc/conn.php'); ?>
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>

    <!--360 browser -->
    <meta name="renderer" content="webkit">
    <meta name="author" content="wos">
    <!-- Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="images/i/app.png">
    <!--Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="apple-touch-icon-precomposed" href="images/i/app.png">
    <!--Win8 or 10 -->
    <meta name="msapplication-TileImage" content="images/i/app.png">
    <meta name="msapplication-TileColor" content="#e1652f">

    <link rel="icon" type="image/png" href="images/i/favicon.png">
    <link rel="stylesheet" href="assets/css/amazeui.css">
    <link rel="stylesheet" href="css/public.css">

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="assets/js/jquery.min.js"></script>
    <!--<![endif]-->
    <!--[if lte IE 8 ]>
    <script src="js/jquery/1.11.3/jquery.min.js"></script>
    <script src="js/modernizr.js"></script>
    <script src="assets/js/amazeui.ie8polyfill.min.js"></script>
    <![endif]-->
    <script src="assets/js/amazeui.min.js"></script>
    <script src="js/public.js"></script>
</head>
<body>

<header class="am-topbar am-topbar-fixed-top wos-header">
    <div class="am-container">
        <h1 class="am-topbar-brand">
            <a href="index.php"><img src="images/logo.png" alt=""></a>
        </h1>

        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-warning am-show-sm-only"
                data-am-collapse="{target: '#collapse-head'}">
            <span class="am-sr-only">导航切换</span>
            <span class="am-icon-bars"></span>
        </button>

        <div class="am-collapse am-topbar-collapse" id="collapse-head">
            <ul class="am-nav am-nav-pills am-topbar-nav">
                <li class="am-active"><a href="index.php">首页</a></li>
              
                <li><a href="category.php"  target="_blank">专栏</a></li>
                <li><a href="liuyan.php" target="_blank">留言板</a></li>

            </ul>

            <div class="am-topbar-right">
                <button class="am-btn am-btn-default am-topbar-btn am-btn-sm"><span class="am-icon-pencil"></span>注册</button>
            </div>

            <div class="am-topbar-right">
                <button class="am-btn am-btn-danger am-topbar-btn am-btn-sm"><span class="am-icon-user"></span> 登录</button>
            </div>
        </div>
    </div>
</header>
<!--banner-->
<div class="banner">
    <div class="am-g am-container">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-8">
            <div data-am-widget="slider" class="am-slider am-slider-c1" data-am-slider='{"directionNav":false}' >
                <ul class="am-slides">
                    <?php
                    $sql="SELECT * FROM  slide limit 5";
                    $result=mysql_query($sql);
                    if(!$result){
                        exit();
                    }
                    while($row=mysql_fetch_array($result)) {

                        ?>
                        <li>
                            <a href="<?php echo $row['lianjie']?>"><img src="<?php echo $row['tupian']?>"></a>
                            <div class="am-slider-desc"><?php echo $row['title']?></div>

                        </li>
                        <?php
                    }
                    ?>

                </ul>
            </div>
        </div>
        <div class="am-u-sm-0 am-u-md-0 am-u-lg-4 padding-none">
            <div class="star am-container" style="margin-bottom: 40px;"><span><img src="images/star.png">最热新闻</span></div>
            <ul class="padding-none am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-2 am-gallery-overlay" data-am-gallery="{ pureview: true }" >
                <?php

                $sql="SELECT * FROM biao LIMIT 20";
                $result=mysql_query($sql);
                while($row=mysql_fetch_array($result)){
                ?>
                <li>
                    <div class="am-gallery-item" style="margin-bottom: 40px;">
                        <a href="infopage.php?id=<?php echo $row['id'] ?>">
                            <!--<img src="Temp-images/lins.png"  alt="远方 有一个地方 那里种有我们的梦想"/>-->
                            <h3 class="am-gallery-title"><?php echo $row['insert_title'] ?></h3>

                            <div class="am-gallery-desc">2375-09-26</div>
                        </a>
                    </div>
                </li>


                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
</div>

<!--banner2-->
<!--news-->
<div class="am-g am-container newatype">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 oh">
        <div data-am-widget="titlebar" class="am-titlebar am-titlebar-default" style="border-bottom: 0px; margin-bottom: -10px">
            <h2 class="am-titlebar-title ">
                热门资讯
            </h2>
            <nav class="am-titlebar-nav">
                <a href="#more">more &raquo;</a>
            </nav>
        </div>

        <div data-am-widget="list_news" class="am-list-news am-list-news-default news">
            <div class="am-list-news-bd">
                <ul class="am-list">

                    <?php

                    $sql="SELECT * FROM biao LIMIT 20,5";
                    $result=mysql_query($sql);
                    while($row=mysql_fetch_array($result)){
                    ?>
                        <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" data-am-scrollspy="{animation:'fade'}"><a href="infopage.php?id=<?php echo $row['id'] ?>">
                            <div class=" am-u-sm-7 am-list-main">
                                <h3 class="am-list-item-hd"> <?php echo $row['insert_title'] ?></h3>
                                <div class="am-list-item-text"><?php echo $row['insert_content'] ?></div>
                            </div>
                            </a>
                        </li>
                        <div class="newsico am-fr">
                            <i class="am-icon-clock-o"><?php
                                if($row['update_time']){
                                    echo date('Y-m-d',$row['update_time']);
                                }else if($row['create_time']){
                                    echo date('Y-m-d',$row['create_time']);
                                }else{
                                    echo  date('Y-m-d');
                                }

                                ?></i>
                            <i class="am-icon-hand-pointer-o">12322</i>
                        </div>
                        <?php
                    }
                    ?>
                </ul>
            </div>

        </div>
    </div>

</div>

<div data-am-widget="gotop" class="am-gotop am-gotop-fixed" >
    <a href="#top" title="回到顶部">
        <span class="am-gotop-title">回到顶部</span>
        <i class="am-gotop-icon am-icon-chevron-up"></i>
    </a>
</div>

<footer>
    <div class="content">
<!--        <ul class="am-avg-sm-5 am-avg-md-5 am-avg-lg-5 am-thumbnails">-->
           <a href="#">联系我们:15983747839</a>&nbsp&nbsp&nbsp&nbsp
            <a href="#">加入我们</a>&nbsp&nbsp&nbsp&nbsp
            <a href="#">合作伙伴</a>&nbsp&nbsp&nbsp&nbsp
            <a href="#">广告及服务</a>&nbsp&nbsp&nbsp&nbsp
            <a href="#">友情链接</a>&nbsp&nbsp&nbsp&nbsp
<!--        </ul>-->
        <div><?php require_once('inc/footer.php'); ?></div>

    </div>
</footer>
</body>
</html>